//
//  Monster.m
//  UISplitViewExample
//
//  Created by Fredrik Häggbom on 2011-03-09.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Monster.h"

@implementation Monster
@synthesize name = _name;
@synthesize descr = _descr;
@synthesize iconName = _iconName;
@synthesize preferredWayToKill = _preferredWayToKill;

- (Monster *)initWithName:(NSString *)name descr:(NSString *)descr 
				 iconName:(NSString *)iconName preferredWayToKill:(Weapon)preferredWayToKill {
    if ((self = [super init])) {
        self.name = name;
        self.descr = descr;
        self.iconName = iconName;
        self.preferredWayToKill = preferredWayToKill;
    }
    return self;
}

- (void) dealloc
{
    [self.name release];
    [self.descr release];
    [self.iconName release];
    [super dealloc];
}

@end